=== Speculative Page Loader – Prefetch and Prerender ===
Contributors: weblineindia
Tags: preloading, speed optimization, speculative loading, prefetch, prerender, speculation rules, SEO performance, site optimization, speculative page load, performance
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Improve Core Web Vitals and SEO with speculative loading. This plugin prefetches and prerenders web pages to enable near-instant loads and faster performance using advanced speculative loading rules.

== Description ==

**Improve your WordPress site's speed, SEO, and user experience with speculative loading technology.**

The Speculative Page Loader plugin intelligently **prefetches** and **prerenders** important resources to deliver near-instant page loads across your site. By predicting which pages users are likely to visit next, it reduces perceived load times and boosts engagement.

It leverages advanced **speculative loading techniques** to preload internal links, optimize interactions, and enhance Core Web Vitals. Easily configure settings to enable preloading for specific post types, popular pages, and custom URLs.

== Features ==

* Enable or disable speculative loading with a toggle.
* Define custom speculation rules for prefetching content.
* Add up to 2 custom URLs for speculative prefetching/prerendering.
* Choose allowed post types for custom URL inclusion.
* Add up to 1 custom URLs post/page specific for speculative prefetching/prerendering.
* Exclude specific URLs from being prefetched/prerendered to save server resources.
* SEO-optimized and Core Web Vitals-friendly.
* Seamlessly works with other popular plugins.
* User-friendly admin interface for easy configuration.

== Note ==

 * Currently, this feature is only supported on Chromium-based browsers running version 121 or later. We plan to gracefully introduce support for other browsers as they begin to adopt speculation rules.

== Installation ==

1. Download the plugin ZIP file.
2. Upload it via the WordPress dashboard under **Plugins > Add New > Upload Plugin**.
3. Activate the plugin from the **Plugins** menu.

== Usage ==

1. Navigate to **Speculative Page Loader** in admin menu.
2. Configure your speculative loading rules and plugin options.
3. Save your settings.
4. The plugin will begin prefetching resources based on your configured rules.

== Frequently Asked Questions ==

= What is speculative loading? =
Speculative loading is a technique where a website **prefetches or prerenders resources** a user might access next. It improves performance by reducing load times for future page requests.

= How does this plugin improve performance? =
It reduces perceived load times by prefetching and prerendering pages based on user behavior and your custom rules, delivering a faster browsing experience.

= How Speculative Loading Affects CPU & Storage? =
**Prefetch**: Downloads resources (HTML, CSS, JS) and stores in memory/disk cache — low CPU, moderate RAM/disk use.
**Prerender**: Fully renders the page in the background — high RAM/CPU usage since it builds the full DOM + JS execution.

= Does this improve SEO or Core Web Vitals? =
Absolutely. Faster loading pages improve user experience and positively impact SEO and Core Web Vitals.

= Can I control what resources are prefetched? =
Yes! You can include/exclude specific post types and URLs using the built-in settings panel.

= Is it compatible with multilingual or other popular plugins? =
Yes, it works smoothly with most major plugins.

= Will speculative loading slow down my site? =
No. It is designed to improve performance by loading resources intelligently, only when beneficial.

= I'm having trouble with the speculation rules script loading — what should I do?
One common cause is caching interference. If your site uses a caching plugin, clear its cache to allow the speculation rules script to load correctly.

== Screenshots ==

1. Plugin Settings Panel – Customize speculation rules easily from the admin interface.

== Changelog ==

= 1.0.0 =
* Release Date: August 12, 2025
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial stable release of Speculative Page Loader – Prefetch and Prerender. Improve your site's speed and SEO with speculative loading.